package com.xxx.services;

import java.util.Scanner;

public class Main {

    static Scanner sc = null;

    public static void main(String[] args) {

        sc = new Scanner(System.in);


        mainMenu();
    }

    public static void mainMenu(){
        while (true) {
            System.out.println("======漂亮美团外卖======");
            System.out.println("1.登入");
            System.out.println("2.用户注册");
            System.out.println("3.商家注册");
            System.out.println("4.退出系统");
            Login login = new Login();
            MerchantRegister mr = new MerchantRegister();
            String s = sc.next();


            switch (s) {
                case "1":
                    login.loginMenu();
                    break;
                case "2":

                    break;
                case "3":
                    mr.merchantRegister();
                    break;
                case "4":
                    return;
                default:
                    System.out.println("请重新输入：");
            }
        }
    }
}
